<template>
    <div>
        <div>
            <span @click="dis">-</span>
            <span>{{count}}</span>
            <span @click="add">+</span>
        </div>      
    </div>
</template>
<script>
export default {
    data(){
        return{
            count:0
        }
    },
    methods:{
        dis(){
            --this.count
        },
        add(){
            ++this.count
        }
    }
}
</script>